package com.zt.eb.service;


import com.zt.eb.mapper.EbProductCategoryMapper;
import com.zt.eb.mode.EbProductCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service//业务员证
public class EbProductCategoryServicelmpl implements EbProductCategorySercie{
    @Autowired
    private EbProductCategoryMapper ebProductCategoryMapper;


    @Override
    public Map<String, List<EbProductCategory>> selectBigAndSmallCate() {
        List<EbProductCategory> bigCategory = ebProductCategoryMapper.selectBigCategory();

        List<EbProductCategory> smallCategory = ebProductCategoryMapper.selectsmallCategory();

        Map<String, List<EbProductCategory>> categoryMap = new HashMap();
        categoryMap.put("big",bigCategory);
        categoryMap.put("small",smallCategory);



        return categoryMap;
    }
}
